OPC Studio User's Guide and Reference
Create(Object,ElementPathSegment[]) Method



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.ComponentModel.Linking Namespace > LinkingTarget Class > Create Method : Create(Object,ElementPathSegment[]) Method
The target object to be linked.
The target path segments.
Creates a linking target based on given target path segments.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Overloads Shared Function Create( _
   ByVal targetObject As Object, _
   ByVal targetPathSegmentArray() As ElementPathSegment _
) As LinkingTarget
'Usage
 
Dim targetObject As Object
Dim targetPathSegmentArray() As ElementPathSegment
Dim value As LinkingTarget
 
value = LinkingTarget.Create(targetObject, targetPathSegmentArray)
[NotNull()]
public static LinkingTarget Create( 
   object targetObject,
   ElementPathSegment[] targetPathSegmentArray
)
[NotNull()]
public:
static LinkingTarget^ Create( 
   Object^ targetObject,
   array<ElementPathSegment^>^ targetPathSegmentArray
) 

Parameters

targetObject
The target object to be linked.
targetPathSegmentArray
The target path segments.

Return Value

The linking target that corresponds to given target path segments.
Exceptions
ExceptionDescription
Error related to the process of member linking.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also